package com.gxa.ssm251.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data  //get set tostring
@AllArgsConstructor  //全参构造
@NoArgsConstructor   //无参构造
@ToString(exclude = "pwd")
@ApiModel(value = "User:用户管理表")
public class User implements Serializable {
    @ApiModelProperty(name = "id",value = "用户id")
    private Integer id;
    @ApiModelProperty(name = "name",value = "用户姓名")
    private String name;
    @ApiModelProperty(name = "pwd",value = "用户密码")
    private String pwd;
    @ApiModelProperty(name = "phone",value = "手机号")
    private String phone;
    @ApiModelProperty(name = "fnlTime",value = "最后登录时间")
    @JsonFormat(pattern = "YYYY-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date fnlTime;
    @ApiModelProperty(name = "idCar",value = "身份证号码")
    private String idCar;
    @ApiModelProperty(name = "remarks",value = "用户备注")
    private String remarks;
    @ApiModelProperty(name = "insuranceName",value = "保险公司")
    private String insuranceName;
    @ApiModelProperty(name = "insyredPerson",value = "被保险人")
    private String insyredPerson;
    @ApiModelProperty(name = "brandCar",value = "车牌号")
    private String brandCar;
    @ApiModelProperty(name = "carModel",value = "车型")
    private String carModel;
    @ApiModelProperty(name = "carEngine",value = "车辆发动机号")
    private String carEngine;
    @ApiModelProperty(name = "regTime",value = "投保日期")
    private String regTime;


    private List<Cp> cpList ;

    public User(String name, String phone) {
        this.name = name;
        this.phone = phone;
    }

    public User(String name) {
        this.name = name;
    }
}
